package com.ddwl.schema.bo.user;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NonNull;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.math.BigDecimal;

@Getter
@Setter
@ApiModel("设置代理全局配置")
public class SetDistrConfigBo {
    @NonNull
    @Min(value = 0)
    @Max(value = 100)
    @ApiModelProperty(value = "区域合伙人分润比例",required = true)
    private BigDecimal regionRate;
    @NonNull
    @Min(value = 0)
    @Max(value = 100)
    @ApiModelProperty(value = "一级代理分润比例",required = true)
    private BigDecimal oneAgentRate;
    @NonNull
    @Min(value = 0)
    @Max(value = 100)
    @ApiModelProperty(value = "二级代理分润比例",required = true)
    private BigDecimal twoAgentRate;
    @NonNull
    @Min(value = 0)
    @Max(value = 100)
    @ApiModelProperty(value = "三级代理分润比例",required = true)
    private BigDecimal threeAgentRate;
    @NonNull
    @Min(value = 0)
    @ApiModelProperty(value = "一级代理门槛金额",required = true)
    private BigDecimal oneAgentThreshold;
    @NonNull
    @Min(value = 0)
    @ApiModelProperty(value = "二级代理门槛金额",required = true)
    private BigDecimal twoAgentThreshold;
    @NonNull
    @Min(value = 0)
    @Max(value = 100)
    @ApiModelProperty(value = "平台分润百分比",required = true)
    private BigDecimal platformRate;

    @NonNull
    @Min(value = 0)
    @Max(value = 100)
    @ApiModelProperty(value = "总代理分润百分比",required = true)
    private BigDecimal topAgentRate;

    @ApiModelProperty(value = "通用总代让利 0 不让利 1 让利给分销员",required = true)
    private Integer topAgentDiscount;

    @ApiModelProperty(value = "佣金比例类型 0 销售商品佣金 1 开门店佣金",required = true)
    private Integer type;
}
